import Vue from "vue";
import VueRouter, { RouteConfig } from "vue-router";

import A from "./views/A.vue";
import B from "./views/B.vue";

Vue.use(VueRouter);

const routes: Array<RouteConfig> = [
  {
    path: "/page/a",
    name: "a",

    component: A
  },
  {
    path: "/page/b",
    name: "b",
    component: B
  }
];

const router = new VueRouter({
  mode: "history",
  routes
});

export default router;
